﻿@namespace Blazorise.Docs.Docs.Examples
@using Blazorise.Localization

<Validation MessageLocalizer="@Localize">
</Validation>
@code{
    [Inject] ITextLocalizer<LocalizationValidationExample> L { get; set; }

    string Localize( string message, IEnumerable<string> arguments )
    {
        // You should probably do null checks here!
        return string.Format( L[message], arguments.ToArray() );
    }
}